//package com.lmx.repoDomain.model;
//
//import io.katharsis.resource.annotations.JsonApiIncludeByDefault;
//import io.katharsis.resource.annotations.JsonApiResource;
//import io.katharsis.resource.annotations.JsonApiToOne;
//import org.hibernate.annotations.Fetch;
//import org.hibernate.annotations.FetchMode;
//
//import javax.persistence.*;
//
///**
// * 任务时间对应表
// */
//@Entity
//@Table(name = "ccd_task_worktime")
//@JsonApiResource(type = "taskWorktime")
//public class TaskWorktime extends BaseDataEntity {
//	private String code;//32位字符串
//	private Task task;//任务
//	private Worktime worktime;//工作时间
//	private Short runStatus;//运行状态 0 未运行  1 进行中
//	private String remark;//备注
//
//	@Column(name = "code")
//	public String getCode() {
//		return code;
//	}
//
//	public void setCode(String code) {
//		this.code = code;
//	}
//
//	@JsonApiToOne
//	@ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.REFRESH)
//	@JoinColumn(name = "task_id",foreignKey = @ForeignKey(name = "null"))
//	public Task getTask() {
//		return task;
//	}
//
//	public void setTask(Task task) {
//		this.task = task;
//	}
//
//	@JsonApiToOne
//	@JsonApiIncludeByDefault
//	@Fetch(FetchMode.JOIN)
//	@ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.REFRESH)
//	@JoinColumn(name = "worktime_id",foreignKey = @ForeignKey(name = "null"))
//	public Worktime getWorktime() {
//		return worktime;
//	}
//
//	public void setWorktime(Worktime worktime) {
//		this.worktime = worktime;
//	}
//
//	@Column(name = "run_status")
//	public Short getRunStatus() {
//		return runStatus;
//	}
//
//	public void setRunStatus(Short runStatus) {
//		this.runStatus = runStatus;
//	}
//
//	@Column(name = "remark")
//	public String getRemark() {
//		return remark;
//	}
//
//	public void setRemark(String remark) {
//		this.remark = remark;
//	}
//}